﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_top : AdminPageBase
{
    protected int userid;
    protected int cMenuId;
    
    protected void Page_Load(object sender, EventArgs e)
    {
        CheckAdmin();
        GetUserPermisions();
        cMenuId = MenuId;

    }
    protected void CheckAdmin()
    {
        if (AdminSessionHelper.UserDetails!= null)
        {
            userid = Convert.ToInt32(AdminSessionHelper.UserDetails["UserId"].ToString());
            lblusername.Text = AdminSessionHelper.UserDetails["Code"].ToString();

        }
        else
        {
            JsHelper.TopAlertRedirect("请先登录", "login.aspx", this.Page);
            Response.End();
        }
    }
}